package com.woniuxy.service.impl;

import com.woniuxy.mapper.RabbitMQMapper;
import com.woniuxy.service.RabbitMQService;
import com.work.framework.pojo.ResultDTO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author fengyao
 * @version 1.0
 * @date 2019/9/29 0029 上午 12:30
 */
@Service
public class RabbitMQServiceImpl implements RabbitMQService {
    @Resource
    RabbitMQMapper rabbitMQMapper;
    @Override
    public ResultDTO startAuction(Integer gid) {
        try {
            rabbitMQMapper.startAuction(gid);
            return new ResultDTO(200,null,null);
        }catch (Exception e){
            return new ResultDTO(500,null,null);
        }
    }
}
